<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .one{
            width: 200px;
            height: 200px;
            float: left;
            background-color: red;
        }
        .two{
            width: 200px;
            height: 200px;
            float: left;
            background-color: green;
        }
        .three{
            width: 200px;
            height: 200px;
            float: left;
            background-color: purple;
        }
    </style>
    <script src="https://vuejs.org/js/vue.js"></script>
</head>
<body>
    <div id="root">
        <button v-on:click="hide">按钮</button>
        <hr>
        <div class="one" v-show="status"></div>
        <div class="two"></div>
        <div class="three" v-show="status"></div>
    </div>
    <script>
        var app = new Vue({
            el:'#root',
            data:{
                status:true
            },
            methods:{
                hide(){
                    this.status = false
                }
            }
        })
    </script>
</body>
</html>